package com.ytangdata.test.rest;

import javax.persistence.EntityManager;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import edu.fudan.mylang.pf.IObjectFactory;

@Component
public class ObjectFactoryConfig{
	@Bean
	public IObjectFactory objectFactory(EntityManager entityManager) {
		ObjectFactory objectFactory = new ObjectFactory();
		objectFactory.setEntityManager(entityManager);
		return objectFactory;
	}
}
